//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
// 

package org.mixim.modules.application;

import org.mixim.base.modules.IBaseApplLayer;

//
// Application layer which generates a certain almost constant
// amount of traffic.
// See class description for details.
//
simple TrafficGen like IBaseApplLayer
{
    parameters:
        double packetTime @unit(s); // the time a packet needs to be transmitted
        double packetsPerPacketTime; // the packets to generate per packet time (regulates traffic)
        bool debug = default(false); // debug switch
        int burstSize = default(1);
        int headerLength @unit(bit);
    gates:
    	input lowerLayerIn; // from lower
        output lowerLayerOut; // to lower
        input lowerControlIn; // control from lower
        output lowerControlOut; // control to lower
}
